package com.geen.tuoke.ui.adapter

import com.geen.tuoke.R
import com.geen.tuoke.base.BaseAdapter
import com.geen.tuoke.bean.Label
import com.geen.tuoke.databinding.ItemTagBinding
import com.qmuiteam.qmui.kotlin.onClick


/**
 * @author 文庆

 * @date 2022/1/3.
 * @description  添加标签的适配器
 */
class LabelAdapter(
) : BaseAdapter<Label, ItemTagBinding>(R.layout.item_tag, null) {
    override fun onUpdate(binding: ItemTagBinding, item: Label, position: Int) {
        binding.run {
            tv.isSelected = item.isSelect
            tv.text = item.name
        }
    }
}


